package status

var Text = make(map[int32]string)

// Code 定义规则：每个服务的起始值为 serverId * 10000 + 业务ID
const (
	Success    = 0
	SystemBusy = 1000

	LackParam    = 8000 + iota // 缺少参数
	InvalidParam               // 非法参数
	AccessToken                // 获取 token 出错
	VerifyToken                // 验证 token 出错
	IllegalToken               // 非法 token
	PlayerInfo                 // 获取玩家失败
)

func init() {
	Text[Success] = "OK"
	Text[SystemBusy] = "System is Busy now"
	Text[LackParam] = "Lack of Param"
	Text[InvalidParam] = "Invalid Param"
	Text[VerifyToken] = "Something wrong when verify Token"
	Text[IllegalToken] = "Illegal Token"
	Text[PlayerInfo] = "Failed to get player info"
}
